|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.protocol.BilateralAtomicNegotiationSession
negotiator.protocol.alternatingoffers.AlternatingOffersBilateralAtomicNegoSession
public class AlternatingOffersBilateralAtomicNegoSession
This is an updated version which has shared deadlines for both agents,
implemented with Timeline.
| Field Summary | |
|---|---|
Agent |
currentAgent
|
java.util.ArrayList<NegotiationOutcome> |
MACoutcomes
|
NegotiationOutcome |
no
|
protected Protocol |
protocol
|
protected java.lang.String |
startingAgent
|
protected boolean |
startingWithA
|
protected java.util.Date |
startTime
|
protected long |
startTimeMillies
|
boolean |
stopNegotiation
stopNegotiation indicates that the session has now ended. |
protected java.lang.Integer |
totalTime
Default setting is 3min. |
| Fields inherited from class negotiator.protocol.BilateralAtomicNegotiationSession |
|---|
additionalLog, agentA, agentAname, agentAparams, agentB, agentBname, agentBparams, bidSpace, fAgentABids, fAgentBBids, finalRound, lastAction, lastBid, matchDataLogger, omMeasuresResults, spaceA, spaceB |
| Constructor Summary | |
|---|---|
AlternatingOffersBilateralAtomicNegoSession(Protocol protocol,
Agent agentA,
Agent agentB,
java.lang.String agentAname,
java.lang.String agentBname,
UtilitySpace spaceA,
UtilitySpace spaceB,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams,
java.lang.String startingAgent)
load the runtime objects to start negotiation |
|
| Method Summary | |
|---|---|
protected void |
badOutcome(double time,
java.lang.String logMsg)
Creates a bad Outcome, which is an outcome with an error |
protected void |
checkAgentActivity(Agent agent)
This is the running method of the negotiation thread. |
protected void |
createBadMACOutcomes()
|
protected void |
createMACOutcomes(double time)
Creates the different outcomes for an agent that is using a MAC Calls createOutcome which actually creates the outcome to be logged. |
void |
createOutcome(Bid lastBid,
double time,
boolean isMac,
OutcomeTuple outcomeTuple,
java.lang.String acceptedBy)
Creates an actual outcome object that can be logged |
NegotiationOutcome |
getNegotiationOutcome()
|
java.lang.String |
getStartingAgent()
|
void |
JudgeTimeout()
This is called whenever the protocol is timed-out. |
Agent |
otherAgent(Agent ag)
|
void |
run()
a parent thread will call this via the Thread.run() function. |
void |
setStartingWithA(boolean val)
|
void |
setTotalTime(int val)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean stopNegotiation
public NegotiationOutcome no
protected java.lang.String startingAgent
protected boolean startingWithA
protected java.util.Date startTime
protected long startTimeMillies
protected java.lang.Integer totalTime
protected Protocol protocol
public Agent currentAgent
public java.util.ArrayList<NegotiationOutcome> MACoutcomes
| Constructor Detail |
|---|
public AlternatingOffersBilateralAtomicNegoSession(Protocol protocol,
Agent agentA,
Agent agentB,
java.lang.String agentAname,
java.lang.String agentBname,
UtilitySpace spaceA,
UtilitySpace spaceB,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams,
java.lang.String startingAgent)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void run()
protected void badOutcome(double time,
java.lang.String logMsg)
throws java.lang.Exception
java.lang.Exception
protected void createMACOutcomes(double time)
throws java.lang.Exception
java.lang.Exceptionprotected void createBadMACOutcomes()
protected void checkAgentActivity(Agent agent)
public Agent otherAgent(Agent ag)
public void JudgeTimeout()
public void createOutcome(Bid lastBid,
double time,
boolean isMac,
OutcomeTuple outcomeTuple,
java.lang.String acceptedBy)
throws java.lang.Exception
java.lang.Exceptionpublic NegotiationOutcome getNegotiationOutcome()
public java.lang.String getStartingAgent()
getStartingAgent in class BilateralAtomicNegotiationSessionpublic void setStartingWithA(boolean val)
public void setTotalTime(int val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||